package com.yike.product.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 商品分类
 *
 * @author Sakura
 * @since 2024-10-18
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "商品分类参数")
public class GoodsCategoryParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分类ID，修改必传")
    private Long id;

    @ApiModelProperty("上级分类ID，顶层为0")
    private Long parentId;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("分类级别")
    private Integer level;

    @ApiModelProperty("是否展示：1展示 0不展示")
    private Boolean displayed;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("描述")
    private String description;

}
